<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <title>注册页</title>
</head>
<body>
  <h3>注册页</h3>
  <div style="color: darkred;" name="message">
    {% if message %}
      {{ message }}
    {% endif %}
  </div>

  <div>
    <form action="/register/" method="post"><br>
      {% csrf_token %}
      <label>用户名：</label>
      <input type="text" name="username" placeholder="用户名1-20个字，中英文或-" required="required"><br> <!--required 必填项-->
      <label>密码：</label>
      <input type="password" name="password" placeholder="请输入密码 20字以下" required="required"><br>
      <label>邮箱：</label>
      <input type="email" name="email" placeholder="请输入邮箱" required="required"><br>

      <input type="submit" value="确认注册"><br>
    </form>
  </div>
</body>
</html>












